
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--{template "wap_header"}-->
<style>
#report th{ 
	background:#ff4d88;
	color:#fff;
}
#report td{ 
    background:#fff;
}
#report tr.odd td{
	background:#F7F7F7;
	border-right:2px solid #fff;
}
</style>
</head>
<body id="orders"> 
<header class="">
                <div class="left-box">
                    <a class="goback" href="javascript:history.back()"><label gaevent="InnerLink|Click|touch/back">返回</label></a>
                </div>
                <h1>收支明细</h1>
</header>
 
<menu>
      <span class="B">您当前的帐户余额是 <em><!--{~user()->get('money')}--></em> 元</span>
</menu>





<div class="body">
{if empty($usermoney)}

 <table width="100%"><tr><td width="100%" height="100px" align="center"><p>
  您暂时还没有账户信息，您充值购买产品的信息都会在这里显示哦！
</p></td></tr></table>


 

 {else}
 <table id="report" width="100%">
<tr>
<th>摘要</th>
<th>日期</th>
<th>金额（元）</th>
<th style="border-right:none;">操作</th>
</tr>
{loop $usermoney $i $value}

<tr>
<td width="30%" align="center">{$value['name']}</td>
<td width="45%" align="center">{eval echo date('Y-m-d H:i:s',$value['time'])}</td>
<td width="15%" align="center">
{if $value['money']==0}
<font color="#FF6600" size="3" title="0元团！">{$value['money']}</font>
{elseif $value['type']=='minus' && $value['money']<0}
<font color="#009999" size="4" title="购物返利！"><b>+</b></font> {echo abs($value['money'])}
{elseif $value['type']=='minus'}
<font color="#FF3333" size="4" title="支出">-&nbsp;</font> {$value['money']}
{else}
<font color="#009900" size="4" title="收入">+</font> {$value['money']}
{/if}
</td>
<td width="10%" align="center"> 
                       <a class="goback" href="javascript:detail('b_{$i}')"><label gaevent="InnerLink|Click|touch/back">详情</label></a>                        
            </td>
</tr>
 <tr style="display:none;" id="b_{$i}">
<td colspan="4" >
<span>
<h4>摘要详情</h4>
<p style="padding:0 20px;">{$value['intro']}</p>
</span> 
</td>
</tr> 
 {/loop}
 </table>
  <table ><tr ><td><p>{~page_moyo()}</p></td></tr></table>
{/if} 
 
</div>





<!--{template "wap_footer"}-->
<script>
    function detail(id){
    	var showValue = $('#'+id).css('display'); //返回到id = show的div的display的值
        if(showValue == "none"){
        	//$('#'+id).css('display','block');
        	$('#'+id).removeAttr("style");
        }else{
        	$('#'+id).css('display','none');
        }
    }
</script>
</body>
</html>
